COMPONENT=MikRobi2AppC
BUILD_EXTRA_DEPS = TankMoveMsg.class TankPidSettingsMsg.class TankTowerMsg.class TankPowerMsg.class TankServoMsg.class

CFLAGS+= -I./chips/atm128/i2c

TankMoveMsg.class: TankMoveMsg.java
	javac TankMoveMsg.java

TankMoveMsg.java: tankmessage.h
	mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=TankMoveMsg tankmessage.h tank_move_msg -o $@ 

TankPidSettingsMsg.class: TankPidSettingsMsg.java
	javac TankPidSettingsMsg.java

TankPidSettingsMsg.java: tankmessage.h
	mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=TankPidSettingsMsg tankmessage.h tank_pid_settings_msg -o $@ 

TankTowerMsg.class: TankTowerMsg.java
	javac TankTowerMsg.java

TankTowerMsg.java: tankmessage.h
	mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=TankTowerMsg tankmessage.h tank_tower_msg -o $@ 

TankServoMsg.class: TankServoMsg.java
	javac TankServoMsg.java

TankServoMsg.java: tankmessage.h
	mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=TankServoMsg tankmessage.h tank_servo_msg -o $@ 

TankPowerMsg.class: TankPowerMsg.java
	javac TankPowerMsg.java

TankPowerMsg.java: tankmessage.h
	mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=TankPowerMsg tankmessage.h tank_power_msg -o $@ 

include $(MAKERULES)

